import request from '@/utils/request'

// 查询设备模版列表
export function listDevice_data_model(query) {
  return request({
    url: '/property/device_data_model/list',
    method: 'get',
    params: query
  })
}

// 查询设备模版详细
export function getDevice_data_model(id) {
  return request({
    url: '/property/device_data_model/' + id,
    method: 'get'
  })
}

// 新增设备模版
export function addDevice_data_model(data) {
  return request({
    url: '/property/device_data_model',
    method: 'post',
    data: data
  })
}

// 修改设备模版
export function updateDevice_data_model(data) {
  return request({
    url: '/property/device_data_model',
    method: 'put',
    data: data
  })
}

// 删除设备模版
export function delDevice_data_model(id) {
  return request({
    url: '/property/device_data_model/' + id,
    method: 'delete'
  })
}
